﻿#ifndef ZUHECHAXUN_H
#define ZUHECHAXUN_H

#include <QWidget>
#include <QTreeWidgetItem>
#include "samename.h"
#include <QCloseEvent>

namespace Ui {
class ZuHeChaXun;
}

class ZuHeChaXun : public QWidget
{
    Q_OBJECT
signals:
    void sendData2(QString id);
    void sendData3(QString id);
public:
    explicit ZuHeChaXun(QWidget *parent = 0);
    ~ZuHeChaXun();
    static int flog;

protected:
    //这是一个虚函数，继承自QEvent.只要重写了这个虚函数，当你按下窗口右上角的"×"时，就会调用你所重写的此函数.
    void closeEvent(QCloseEvent*event);

private slots:
    //void on_treeWidget_doubleClicked(const QModelIndex &index);
    //void slotDoubleClickItem(QTreeWidgetItem *item, int col);
    //void on_treeWidget_doubleClicked(const QModelIndex &index);

void on_treeWidget_2_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_buttonFind_1_clicked();
void on_buttonFind_2_clicked();



    void on_pushButton_clicked();

    void on_pushButton_3_clicked();




    void on_oldmin_textChanged(const QString &arg1);

    void on_oldmax_textChanged(const QString &arg1);

    void on_renzhimin_textChanged(const QString &arg1);

    void on_renzhimax_textChanged(const QString &arg1);

public slots:
    void recvData1(QString id);
private:
    Ui::ZuHeChaXun *ui;
    samename *same;

};

#endif // FORM2_H
